import {defineStore} from "pinia";

/**
 * 试题store
 */
export const questionStore = defineStore('question', {
    state: () => ({
        questionInsertOpen: false,
        questionId:0,
        openUpload:false,
        bankId:0
    }),
    actions: {
        setQuestionInsertOpen(value: boolean) {
            this.questionInsertOpen = value
        },
        setQuestionId(value: number) {
            this.questionId = value
        },
        setQuestionUploadOpen(value:boolean){
            this.openUpload=value
        },
        setBankId(value:number){
            this.bankId=value
        }
    }, getters: {}
})